<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:ui="http://java.sun.com/jsf/facelets"
 xmlns:p="http://primefaces.prime.com.tr/ui"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:f="http://java.sun.com/jsf/core">
<h:head>
  <title>Formulario</title>
  </h:head>
    <center><h:body>
    
      <h:form>
      <body bgcolor="#F5DA81"></body>
         
  
      
         <h1><em><u>Registro de Usuario</u></em></h1>
        
          <fieldset>
          <h:panelGrid columns="2" id="matchG" cellpadding="5">
              
          <legend>Nombre:<br/></legend>
          <h:outputLabel for="id"  style="font-weight:bold"/>
          <p:inputText id="regex"  validatorMessage="Valor no valido para este campo">
          <f:validateRegex pattern="^[a-zA-Z]+$" />
           </p:inputText>
            <p:message for="regex" />
            <h:outputText value="" />
            </h:panelGrid>
          </fieldset>
         
          
    <fieldset>
      <h:panelGrid columns="2" id="matchGr" cellpadding="5">
          <legend>Correo:<br/></legend>
          <h:inputText name="nom"  />
          </h:panelGrid>
          </fieldset>
          

           <fieldset> 
          <h:panelGrid columns="2" id="matchGri" cellpadding="5">                   
        <center><h:outputLabel for="pwd1" value="Contraseña" /><br/></center>
        <p:password id="pwd2"  match="pwd2" label="Password 1" required="true" />
</h:panelGrid>
</fieldset>
 <fieldset>

 <h:panelGrid columns="2" id="matchGrid" cellpadding="5">                   
     <center>  <h:outputLabel for="pwd1" value="Confirmar Contraseña" /><br/></center>
        <p:password id="pwd1"  match="pwd2" label="Password 1" required="true" />
</h:panelGrid>
 <br/>
	</fieldset>	  
          
    <p:commandButton value="Registrar" id="registrar"  />
       


      </h:form>
    </h:body></center>
  </html>